package cn.com.nes.site.service.monitor.dto;

import cn.com.nes.mybatis.agent.ope.entity.IsEquipmentInfo;
import lombok.Data;

@Data
public class EquipmentDTO {

    /**
     * 传输序列号
     */
    private String dtuId;

    /**
     * 设备ID
     */
    private String equipmentId;

    /**
     * 设备名称
     */
    private String equipmentName;

    /**
     * 设备厂家ID
     */
    private String manufactureId;

    /**
     * 设备厂家ID
     */
    private String manufactureName;

    /**
     *  设备型号ID
     */
    private String equipmentModelId;

    /**
     * 设备型号名称
     */
    private String equipmentModelName;

    public static EquipmentDTO from(IsEquipmentInfo isEquipmentInfo) {
        EquipmentDTO equipmentDTO = new EquipmentDTO();
        equipmentDTO.setEquipmentId(isEquipmentInfo.getSbId());
        equipmentDTO.setEquipmentName(isEquipmentInfo.getAlias());
        equipmentDTO.setManufactureId(isEquipmentInfo.getManufactureId());
        equipmentDTO.setDtuId(isEquipmentInfo.getWxId());
        equipmentDTO.setEquipmentModelId(isEquipmentInfo.getSblxId());
        return equipmentDTO;
    }

}
